package com.hy.admin.service;

import com.hy.admin.entity.MemberEntity;
import com.hy.admin.entity.TeacherEntity;
import com.hy.admin.helper.request.AccountRequest;
import com.hy.admin.helper.request.MemberRequest;
import com.hy.core.response.ServicesResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * Created by shitou on 17/12/28.
 */
public interface MemberService {
    ServicesResult<Boolean> Update(MemberRequest memberRequest, MultipartFile file) throws Exception;
    ServicesResult<Boolean> IsExist(AccountRequest accountRequest);

    /**
     * 上传教师证
     * @param memberId
     * @param file
     * @return
     */
    ServicesResult<Boolean> upload(Long memberId, MultipartFile file) throws IOException;

    ServicesResult<Boolean> updDeviceToken(Long memberId, String deviceToken);

    ServicesResult<Boolean> updAliDeviceId(Long memberId, String aliDeviceId);
}
